
#include "Led.h"

unsigned char Led::current = 0;

Led::Led (short i) : nr (i) {    
   mkt_leds_init();
}

void Led::on (void)
{
   current |=  (1 << (8 - nr));
   mkt_leds_write (current);
}

void Led::off (void)
{
   current &= ~(1 << (8 - nr));
   mkt_leds_write (current);
}

